<template>
    <div class="notfound">
        <img src="@/assets/404 (1).png" alt="">
        <div class="text">
            <p>很抱歉！您所访问的页面不存在</p>
            <div class="btn" @click="goHome">点击此处回到首页</div>
        </div>
    </div>
</template>

<script>
    export default {
        name:"404-Component",
        methods:{
            goHome(){
                this.$router.push('/home')
            }
        },
    }
</script>

<style scoped lang="less">
    .notfound{
        width: 100%;
        text-align: center;

        img{
            width: 60vw;
            margin:20px 0
        }

        p{
            font-size: 2vw;
            color:#fff;
            margin-bottom: 2vw;
        }

        .btn{
            font-size: 20px;
            color:#fff;
            background: #333;
            height: 3.9vw;
            line-height: 3.9vw;
            width: 13vw;
            margin: 0 auto;

            &:hover{
                background: #2C88F3;
                cursor: pointer;
            }
        }
        
    }
</style>